package com.zhanghu.backendZray.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhanghu.backendZray.pojo.entity.User;
import com.zhanghu.backendZray.pojo.request.city.CitySettingRequest;
import com.zhanghu.backendZray.pojo.request.user.ChangePasswordRequest;
import com.zhanghu.backendZray.pojo.request.user.UserBaseInfoRequest;
import com.zhanghu.backendZray.pojo.request.user.UserRequest;

public interface UserService extends IService<User> {

    void add(UserRequest userRequest);

    void update(UserRequest userRequest);

    void del(Long id);

    String getNameById(Integer id);

    void changePassword(ChangePasswordRequest changePasswordRequest);

    void namePhoneSetting(UserBaseInfoRequest userBaseInfoRequest);

    User getByWxNickName(String wxNickName);

    /**
     * 用户配置常驻城市
     * @param citySettingRequest
     */
    void citySetting(CitySettingRequest citySettingRequest);

    /**
     * 获取用户常驻城市
     * @return
     */
    String getCitySetting();
}
